package com.hc.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author hecai
 * @date 2021/12/7 15:10
 * 品牌表
 */
@ApiModel(value="com-hc-domain-Brand")
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_brand")
public class Brand implements Serializable {
    private static final long serialVersionUID = -7170949725470318638L;
    /**
     * 品牌编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="品牌编号")
    private Integer id;

    /**
     * 品牌名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value="品牌名称")
    private String name;

    /**
     * 品牌LOGO
     */
    @TableField(value = "logo")
    @ApiModelProperty(value="品牌LOGO")
    private String logo;

    /**
     * 品牌描述
     */
    @TableField(value = "info")
    @ApiModelProperty(value="品牌描述")
    private String info;

    /**
     * 状态 1上架  2下架
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="状态 1上架  2下架")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;

}